﻿using System;
using System.Collections.Generic;

//using EPiServer.Security;

namespace Cognifide.PowerShell.Shell.Storage
{
    [Serializable]
    public class ContextScriptCollection
    {
        public ScriptArea Area = ScriptArea.PageContext;
        public string Description;
        public string Title;

        public ContextScriptCollection()
        {
            Scripts = new List<ContextScript>();
        }

        public List<ContextScript> Scripts { get; set; }

/*
        public ContextScriptCollection GetForPrincipal(PrincipalInfo principal)
        {
            ContextScriptCollection result = (ContextScriptCollection) this.MemberwiseClone();
            result.Scripts = new List<ContextScript>();
            foreach (var script in Scripts)
            {
                if (script.AvailableForPrincipal(principal))
                {
                    result.Scripts.Add(script);
                }
            }
            return result;
        }
*/
    }
}